﻿using TimServerSDK.Abp.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Settings;

namespace TimServerSDK.Abp.Settings
{
    public class HelmetSettingDefinitionProvider : SettingDefinitionProvider
    {
        public override void Define(ISettingDefinitionContext context)
        {
            /* Define module settings here.
             * Use names from HelmetSettings class.
             */
            context.Add(new SettingDefinition(
                   TimeServerSDKSettings.AppId,
                   "",
                   displayName: L("Setting:AppIdDisplayName"),
                   description: L("Setting:AppIdDescription")
               ));

            context.Add(new SettingDefinition(
                   TimeServerSDKSettings.AppSecret,
                   "",
                   displayName: L("Setting:AppSecretDisplayName"),
                   description: L("Setting:AppSecretDescription")
               ));

            context.Add(new SettingDefinition(
                   TimeServerSDKSettings.Identifier,
                   "",
                   displayName: L("Setting:IdentifierDisplayName"),
                   description: L("Setting:IdentifierDescription")
               ));
        }

        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<TimServerSDKResource>(name);
        }
    }
}